package com.qcby.Service;

import com.qcby.Entity.TrainOrder;
import com.qcby.query.TrainNumQuery;

import java.util.List;

public interface TrainNumService {

    List<TrainNumQuery> getTrainWithDetails(String time);
    TrainNumQuery getTrainWithDetailsByTrainId(int id);
    void addTrainWithDetail(TrainNumQuery trainNumQuery);
    void deleteTrainWithDetailById(Integer id);
    List<TrainNumQuery> SearchTrainWithDetailsAndOrders(Integer fromStationId,Integer toStationId,String date);
    TrainOrder buyTrainTicket(TrainOrder trainOrder);
    List<List<TrainNumQuery>> SearchTransTrainWithDetails(Integer fromStationId,Integer toStationId,String date);
    List<TrainOrder> buyTransTrainTicket(List<TrainOrder> orderList);
}
